package com.d0324;

import java.util.Arrays;

public class StudentTest {
    public static void main(String[] args) {
        Student s1=new Student("扣桑",26,88);
        Student s2=new Student("干净又卫生",21,77);
        Student s3=new Student("奢侈",47,99);
        Student s4=new Student("778",33,87);
        Student[] students=new Student[]{s1,s2,s3,s4};
        Arrays.sort(students,new StudentAgeComparator());
        for (Student s:students){
            System.out.println(s);
        }
    }
}
